﻿using System;
using badmati.Log.Enums;
using badmati.Log.Mapping;
using Newtonsoft.Json;

namespace badmati.Log.Models
{
    /// <summary>
    /// 登录记录对象模型
    /// </summary>
    public class LoginRecord
    {
        /// <summary>
        /// id
        /// </summary>
        [Column("l_id"),JsonProperty("id")]
        public int Id { get; set; }
        /// <summary>
        /// 用户名
        /// </summary>
        [Column("l_user_name"), JsonProperty("userName")]
        public string UserName { get; set; }
        /// <summary>
        /// 用户类型
        /// </summary>
        [Column("l_user_type"), JsonProperty("userType")]
        public int UserType { get; set; }
        /// <summary>
        /// 登录时间
        /// </summary>
        [Column("l_time"), JsonProperty("time")]
        public DateTime Time { get; set; }
        /// <summary>
        /// 登录ip
        /// </summary>
        [Column("l_ip"), JsonProperty("ip")]
        public string Ip { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [Column("l_remark"), JsonProperty("remark")]
        public string Remark { get; set; }
    }
}
